#include<iostream>
using namespace std;
const int m = 1000;
void Reserve(char str[])
{
	if (str == NULL) {
		return;
	}
	int i = 0;
	int len1 = 0;
	int black = 0;
	int new_1 = 0;
	while (str[i] != '\0') {
		len1++;
		if (str[i] == ' ') {
			black++;
		}
		i++;
	}
	new_1 = len1 + 2 * black;
	while (len1 >= 0 && new_1 > len1) {
		if (str[len1] == ' ') {
			str[new_1--] = '0';
			str[new_1--] = '2';
			str[new_1--] = '%';
		}
		else {
			str[new_1--] = str[len1];
		}
		len1--;
	}
}
int main()
{
	char str[m];
	fgets(str,1000,stdin);
	Reserve(str);
	cout << str << endl;
	return 0;
}